FillPoly
FillPoly
Fill interior of a Polygon with specified pattern PolyHandle thePoly ; handle of polygon to fill
PatPtr thePat ; address of an 8-byte Pattern structure FillPoly fills all pixels enclosed by the line segments of a polygon with a specified pattern. The transfer mode is patCopy, overwriting all bits within
the region.
thePoly is a handle leading to a variable-length Polygon structure. It is typically a value obtained via OpenPoly. thePat is the address of an 8-byte Pattern structure. It may be one of the global patterns (black, white, gray, ltGray, or dkGray), or a pattern read from a resource, or a pattern created by the application. See
PenPat for examples of obtaining or creating a pattern.
Notes: The interior of the polygon is treated as a region, even if it is not a closed
structure. The pattern overwrites the entire region, including the output of
any previously- executed "frame" operation. As with all pattern operations,
the top-left of the pattern is aligned at a multiple of 8 dots from local
coordinate (0,0).
FillPoly doesn't change the pen position. The GrafPort's pen pattern, pen mode and background pattern are ignored.
As with all Quickdraw drawing, the output is clipped to the intersection of
the current GrafPort's bitMap boundary rectangle, the port rectangle, clipping region, and visible region.